package com.abase.site.shared;

import com.google.gwt.user.client.rpc.IsSerializable;

public class AbaseException extends Exception implements IsSerializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 5587695568494206299L;

	public enum AbaseExcpetionCodes {
		ABASE_DEFAULT_EXCPETION(001),
		ABASE_AUTH_LOGIN_FAIL(002),
		ABASE_AUTH_BAD_LOGIN(003),
		ABASE_AUTH_BAD_PASSWORD(004);
		
		private final int value;

	    private AbaseExcpetionCodes(final int value) {
	      this.value = value;
	    }

	    public int getValue() {
	      return this.value;
	    }
	}
	
	
	private AbaseExcpetionCodes abaseExcpetionCodes = null;

	public AbaseException() {
		
	}
		
	public AbaseException(final AbaseExcpetionCodes abaseExcpetionCodes) {
		this.abaseExcpetionCodes = abaseExcpetionCodes;
	}
	
	public AbaseExcpetionCodes getAbaseExcpetionCodes() {
		return this.abaseExcpetionCodes;
	}


}
